//
//  GroupTableViewCell.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/11/6.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "GroupTableViewCell.h"

@implementation GroupTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}



-(void)setDeleStatue:(BOOL)deleStatue
{
    _deleStatue=deleStatue;
    
    if (deleStatue) {
        
        self.editImageView.hidden=NO;
        
        self.accessoryType=UITableViewCellAccessoryNone;

    }else{
        
        self.editImageView.hidden=YES;
        
        self.accessoryType=UITableViewCellAccessoryDisclosureIndicator;

    }
    
}


-(void)setModel:(GroupListData *)model
{
    _model=model;
    
    self.GroubNameLabel.text=model.groupName;
    
    if (self.isClick) {

        
        if (model.Seleclt) {
            
            self.editImageView.image=[UIImage imageNamed:@"Select"];
            
        }else{
            
            self.editImageView.image=[UIImage imageNamed:@"UnSelect"];
        }
    
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
